package com.example.demo.exception;

/**
 * Created by Administrator on 2017/10/26 0026.
 */
public class BusinessException extends RuntimeException {

    private int code;
    private String msg;


    public BusinessException(ExceptionCode e) {
        this.code = e.getCode();
        this.msg = e.getMsg();
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
